package cn.tedu.medicalappointmentsystemk.dao.persist.mapper;

import cn.tedu.medicalappointmentsystemk.pojo.bo.DoctorSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.bo.DoctorSelectByDoctorIdBO;
import cn.tedu.medicalappointmentsystemk.pojo.param.DoctorUpdateParam;
import cn.tedu.medicalappointmentsystemk.pojo.po.DoctorPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DoctorMapper extends BaseMapper<DoctorPO> {

    Page<DoctorSelectBO> select();

    Integer update(DoctorUpdateParam param);

    Long selectIdByUserId(Long userId);

    DoctorSelectByDoctorIdBO selectDoctorByDoctorId(Long id);

    List<DoctorSelectBO> selectByNickname(String nickname);

    Integer selectTotal();

    Page<DoctorSelectBO> searchLastWeek();

    Page<DoctorSelectBO> searchLastMonth();


    Page<DoctorSelectBO> searchToday();
}
